package lookie.swing.tree.model;

import java.util.Enumeration;

import javax.swing.tree.TreeNode;

public class PlaceholderNode implements TreeNode {

	private TreeNode parent;
	
	public PlaceholderNode(TreeNode parent) {
		super();
		this.parent = parent;
	}

	public Enumeration<?> children() {
		return null;
	}

	public boolean getAllowsChildren() {
		return false;
	}

	public TreeNode getChildAt(int childIndex) {
		return null;
	}

	public int getChildCount() {
		return 0;
	}

	public int getIndex(TreeNode node) {
		return 0;
	}

	public TreeNode getParent() {
		return parent;
	}

	public boolean isLeaf() {
		return true;
	}

	@Override
	public String toString() {
		return "Loading";
	}

}
